var search = function () {
    var whiteBg = function () {
        /*窗口加载的时候改变背景色*/
        window.onload = function(){
            document.body.style.backgroundColor="#FFFFFF";
        }
    };

    var getKeyWord = function () {
        var input = $("#search");
        var keyword = "";
        input.on('keydown', function (e) {
            keyword =  $(this).val();
            var key = e.which;
            if (key == 13) {
                e.preventDefault();
                /*传递关键字查询*/
            }
        });
        $('form a').on('click',function () {
            keyword = $(this).text;
        });
        /*keyword为找到的关键字，进行查询即可*/
    };


    return{
        init:function () {
            whiteBg();
            getKeyWord();
        }
    }
}();


